@mixin line-hight($number) {
    height: $number;
    line-height: $number;
}
@mixin bg($bg) {
    background: url("../../../../#{$bg}") 100% 100% no-repeat;
    background-size: cover;
}
@mixin home_lg() {
    .two_nav .item_box {
        padding:  0 50px;
    }
    .field {
        width: 100%;
         .table{
             width: 100%;
             height: 442px;
             @include bg("assets/images/field_table_bg.png");
         }
        //问题解答
        .knowledge {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
                justify-content: flex-start;
            .knowledge_list {
                // max-width: 900px;
                flex: 1;
                margin-right: 24px;
                font-size: 16px;
                margin: 20px;
                // padding-bottom: 20px; 
            }
            .folding {
                max-width: 274px;
                font-size: 18px;
                text-align: left;
                .folding_title {
                    @include line-hight(54px);
                    text-align: left;
                    font-size: 24px;
                    box-sizing: border-box;
                    padding: 0 13px;
                    color: #a9171f;
                    background: #f7f7f7;
                }
                .folding_item {
                    cursor: pointer;
                    width: 100%;
                    box-sizing: border-box;
                    padding: 0 10px 0 24px;
                    font-size: 16px;
                    height: 67px;
                    line-height: 30px;
                    color: #656565;
                    background: #f7f7f7;
                    margin-top: 1px;
                    display: table;
                    div {
                        display: table-cell;
                        vertical-align: middle;
                        position: relative;
                        &::after {
                            content: "";
                            display: block;
                            position: absolute;
                            left: -15px;
                            top: 50%;
                            margin-top: -4px;

                            width: 8px;
                            height: 8px;
                            border-radius: 50%;
                            background: #a9171f;
                        }
                    }
                }
                .folding_active {
                    color: #aa171f;
                    border-top: 4px solid #aa171f;
                    background: rgba($color: #aa171f, $alpha: 0.16);
                }
            }
        }
    }
    .fieldDetails {
        .table{
            @include bg("assets/images/field_table_bg.png");
        }
    }
    .details {
        max-width: 1200px;
        margin: 0 auto;
        position: relative;
        font-size: 16px;
        h1 {
            @include line-hight(107px);
            font-size: 20px;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #333;
            text-align: center;
            box-sizing: border-box;
            padding-right: 100px;
        }
        .return {
            cursor: pointer;
            width: 100px;
            position: absolute;
            right: 0;
            top: 40px;
            font-size: 16px;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #666;
            img {
                width: 7px;
                height: 13px;
            }
        }
        .content {
            width: 100%;
            font-size: 16px;
            padding-bottom: 30px;
        }
    }
}
@mixin home_sm() {
    .table{
        width: 100%;
        height: 3.4rem;
        @include bg("assets/images/field_table_bg.png");
    }
    .field {
        width: 100%;
        
        //问题解答
        .knowledge {
            // max-width: 12rem;/
            box-sizing: border-box;
            padding: 0 0.3rem;
            margin: 0 auto;
            .knowledge_list {
                // width: 9rem;
                // margin-right: 0.24rem;
                font-size: 0.16rem;
                margin-top: 0.5rem;
            }
            .folding {
                margin-top: 0.6rem;
                font-size: 0.28rem;
                text-align: left;
                padding-bottom: 0.55rem;
                .folding_title {
                    width: 1.5rem;
                    @include line-hight(0.54rem);
                    text-align: center;
                    font-size: 0.24rem;
                    box-sizing: border-box;
                    padding: 0 0.13rem;
                    color: #a9171f;
                    // background: #f7f7f7;
                    border-bottom: 0.01rem solid #eaeaea;
                    position: relative;
                    &::after {
                        content: "";
                        position: absolute;
                        left: 0;
                        // top: 0;
                        bottom: 0;
                        width: 100%;
                        height: 0.04rem;
                        background: #a9171f;
                    }
                }
                .folding_item {
                    cursor: pointer;
                    width: 100%;
                    border-radius: 0.04rem;
                    box-sizing: border-box;
                    padding-left: 0.24rem;

                    font-size: 0.26rem;
                    // @include line-hight(0.9rem);
                    height: 0.9rem;
                    // line-height: 0.3rem;
                    color: #666;
                    background: #f8f8f8;
                    margin-top: 0.26rem;
                    display: table;
                    position: relative;
                    &::after {
                        content: "";
                        display: block;
                        position: absolute;
                        left: 0.1rem;
                        top: 50%;
                        margin-top: -0.04rem;
                        width: 0.08rem;
                        height: 0.08rem;
                        border-radius: 50%;
                        background: #a9171f;
                    }
                    div {
                        width: calc(100% - 0.24rem);
                        height: 0.9rem;
                        display: table-cell;
                        vertical-align: middle;
                    }
                }
                .folding_active {
                    // color: #aa171f;
                    // border-top: 0.04rem solid #aa171f;
                    // background: rgba($color: #aa171f, $alpha: 0.16);
                }
            }
        }
    }
    .details {
        box-sizing: border-box;
        padding: 0 0.3rem;
        position: relative;
        font-size: 0.16rem;
        h1 {
            height: 1.07rem;
            font-size: 0.3rem;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #333;
            text-align: center;
            box-sizing: border-box;
            // padding-right: 1rem;
        }
        .return {
             width: 100%;
             @include line-hight(1rem);
             text-align: right;
            cursor: pointer;
            padding-right: 0.3rem;
            // position: absolute;
            // right: 0;
            top: 0.4rem;
            font-size: 0.16rem;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #666;
            img {
                width: 0.07rem;
                height: 0.13rem;
            }
        }
        .content {
            width: 100%;
            font-size: 0.16rem;
            padding-bottom: .3rem;
        }
    }
}
//* 设备宽度大于 320px 小于 640px */
@media only screen and (min-width: 320px) and (max-width: 640px) {
    @include home_sm;
}
@media only screen and (min-width: 641px) and (max-width: 1199px) {
    @include home_lg; 
    .field .knowledge   {
        margin: 0 30px;
        display: flex;
        .knowledge_list{
            flex: 1;
        }
        .folding{
            width: 200px;
        }
    }
}
@media screen and (min-width: 1200px) {
    @include home_lg;
}
